package com.tang.login_session.service.impl;

import com.tang.login_session.context.RequestContext;
import com.tang.login_session.pojo.User;
import com.tang.login_session.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class UserServiceImpl implements IUserService {

    @Override
    public void doSomething() {
        User user = RequestContext.getCurrentUser();
        log.info("service层-----当前登录对象：" + user);
    }

}
